﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucRegister.ascx.cs" Inherits="UserControl_Register" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = "Index.aspx";
    }
</script>

<style type="text/css">
    input
    {
        border: 2px solid #00B0E4;
        border-radius: 7px 7px 7px 7px;
        height: 25px;
        padding-left: 10px;
        margin-bottom: 5px;
    }
</style>
<div id="Box">
    <div class="box2">
        <div class="bnt_close">
            <a href="#">
                <img src="images/bnt_close.png" width="50" height="50" /></a></div>
        <div class="boxW">
            <div class="boxT">
            </div>
            <div class="boxC">
                <asp:Panel ID="pnlRegister" runat="server" DefaultButton="cmdSubmit">
                    <table>
                        <tr>
                            <td style="padding: 5px 5px 10px 10px;" align="center">
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td style="font-size: 14px;">
                                            <b>Membership of push email is free.</b>
                                            <br />
                                            When you register, you&#39;ll be able to use user management functions of the website
                                            to track your orders as well as review the purchased history...
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="background-color: dimgrey; padding: 5px;">
                                <b style="color: White; height: 22px">Account Information</b>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 5px 7px 5px 15px; text-align: left;">
                                <table border="0" cellpadding="0" cellspacing="3" style="margin-left: 100px;">
                                    <tr>
                                        <td>
                                            Email:
                                        </td>
                                        <td align="left">
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtEmail"
                                                WatermarkCssClass="clsWaterMarkRequiredField" WatermarkText="email@user.com">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:TextBox ID="txtEmail" runat="server" ValidationGroup="validRegister" ToolTip="Input email"
                                                CssClass="txtRegisterReq" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtEmail"
                                                runat="server" ErrorMessage="*" SetFocusOnError="True" Display="Static" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>&nbsp;
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid email address"
                                                Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                ControlToValidate="txtEmail" SetFocusOnError="True" ValidationGroup="grpRegister"></asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Password:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" ToolTip="Input password"
                                                CssClass="txtRegisterReq" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtPassword"
                                                runat="server" ErrorMessage="*" Display="Static" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Cofirm Password:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtRePassword" runat="server" TextMode="Password" ToolTip="Retype your password"
                                                CssClass="txtRegisterReq" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="requireRePassword" ControlToValidate="txtRePassword"
                                                runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator><asp:CompareValidator
                                                    ID="CompareValidator1" runat="server" ErrorMessage="Passwords do not match. "
                                                    Display="Dynamic" ControlToCompare="txtPassword" ControlToValidate="txtRePassword"
                                                    ValidationGroup="grpRegister"></asp:CompareValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            First Name:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtFName" runat="server" ValidationGroup="validRegister" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="requireFirstName" ControlToValidate="txtFName"
                                                runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            LastName:
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtLName" runat="server" ValidationGroup="validRegister" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="requireLastName" ControlToValidate="txtLName"
                                                runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mobile Phone:
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtphone" runat="server" ValidationGroup="validRegister" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtphone"
                                                runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Address:
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtAdress" runat="server" ValidationGroup="validRegister" Width="250px"></asp:TextBox>
                                            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtAdress"
                                                runat="server" ErrorMessage="*" Display="Dynamic" ValidationGroup="grpRegister"></asp:RequiredFieldValidator>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="padding-top: 10px;">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                    <ContentTemplate>
                                        <asp:ImageButton ID="cmdSubmit" runat="server" Style="height: auto;" ToolTip="Register"
                                            ImageUrl="~/images/bnt_register.png" OnClick="cmdSubmit_Click" ValidationGroup="grpRegister" />
                                    </ContentTemplate>
                                    <Triggers>
                                        <asp:AsyncPostBackTrigger ControlID="cmdSubmit" EventName="Click" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" style="padding-top: 5px;">
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                    <ProgressTemplate>
                                        <asp:Image ID="imgLoading" runat="server" ToolTip="Loading..." ImageUrl="~/images/loadingAnimation.gif"
                                            Style="border-width: 0px;" Width="31px" />
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
            <div class="boxB">
            </div>
        </div>
    </div>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td align="center" style="padding-bottom: 5px; padding-top: 5px">
            <asp:Label ID="lblMessage" runat="server" Text="">
            </asp:Label>
        </td>
    </tr>
</table>
